From 13bf75e9dce07a9e0b12097ac980db99cdb48845 Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 18 Jul 2009 20:07:06 +0000 Subject: [PATCH] VPL: use WAYPT_SET. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3707 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/vpl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/vpl.c b/gpsbabel/vpl.c index 12e7372ac..a2cbf0ed1 100644 --- a/gpsbabel/vpl.c +++ b/gpsbabel/vpl.c @@ -154,8 +154,8 @@ vpl_parse_75_sentence(const char *ibuf) waypt->longitude = lon_raw / (double) 0xE1000; waypt->altitude = alt; waypt->sat = sats; - // Speed comes in MPH*16 which we have to convert to m/s - waypt->speed = (speed_raw / (double) 0x10) * 0.44704; + // Speed comes in (MPH x 0x10) which we have to convert to m/s + WAYPT_SET(waypt, speed, (speed_raw / (double) 0x10) * 0.44704); waypt->course = hdg_raw * (double) (360/65535); waypt->creation_time = mkgmtime(&tm); -- 2.30.2